]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
gdm: use password authentication if all schemes are disabled
authorRay Strode <rstrode@redhat.com>
Wed, 1 Jul 2015 15:18:44 +0000 (11:18 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 20 Feb 2018 15:21:23 +0000 (10:21 -0500)
This prevents a traceback, at least.

js/gdm/util.js

index b594da4fd98d92eb9f5ed88c5c64e3ed0a057b2b..bae46bfe03b6a5d7738a2e572d3a988c8bead213 100644 (file)
@@ -419,6 +419,11 @@ var ShellUserVerifier = new Lang.Class({
             this._defaultService = SMARTCARD_SERVICE_NAME;
         else if (this._haveFingerprintReader)
             this._defaultService = FINGERPRINT_SERVICE_NAME;
+
+        if (!this._defaultService) {
+            log("no authentication service is enabled, using password authentication");
+            this._defaultService = PASSWORD_SERVICE_NAME;
+        }
     },
 
     _startService: function(serviceName) {